<?php

/**
 * @author hungnq@younetco.com
 */
class Store_Form_SearchOrder extends YouNet_Form
{
	public function init()
	{
		$this->setMethod('post');

		$this->setAttrib('class','form_search search_order');
		
        $this->addElement('text', 'date_from', array(
			'decorators' => array('ViewHelper'),
			'class' => 'date_from date'
		));
        
        $this->addElement('text', 'date_to', array(
			'decorators' => array('ViewHelper'),
			'class' => 'date_to date'
		));

		$this->addElement('select','status', array(
			'decorators' => array('ViewHelper'),
            'class' => 'status',
            'multiOptions' => Core_Model_DbTable_Carts::getListStatus()
		));
		
        $this->addElement('submit', 'btn_search', array(
			'label' => 'LABEL_SEARCH',
			'class' => 'btn_search bluebutton',
			'decorators' => array('ViewHelper')
		));
	}

}
